package com.wgchao.identityrightsmanagement.infrastructure.jpa.repository;

import com.wgchao.identityrightsmanagement.infrastructure.jpa.entity.SysBaseAgency;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface SysBaseAgencyRepository extends JpaRepository<SysBaseAgency, Long>, JpaSpecificationExecutor<SysBaseAgency> {
    SysBaseAgency findFirstByAgencyCodeAndDelFalse(String agencyCode);
    SysBaseAgency findFirstByAgencyCode(String agencyCode);
}
